package com.fzshang.shopping.commen.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 规格(大小)
 * </p>
 *
 * @author 冯政尚
 * @since 2020-03-15
 */
@ApiModel(value="SizeClassification对象", description="规格(大小)")
public class SizeClassification extends Model<SizeClassification> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @TableField("commodity_id")
    private Long commodityId;

    @TableField("classification_id")
    private Long classificationId;

    @TableField("size")
    private String size;

    @TableField("create_time")
    private Long createTime;

    @TableField(exist = false)
    private String classificationName;

    @TableField(exist = false)
    private String commodityName;

    public String getClassificationName() {
        return classificationName;
    }

    public void setClassificationName(String classificationName) {
        this.classificationName = classificationName;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(Long commodityId) {
        this.commodityId = commodityId;
    }
    public Long getClassificationId() {
        return classificationId;
    }

    public void setClassificationId(Long classificationId) {
        this.classificationId = classificationId;
    }
    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }
    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SizeClassification{" +
            "id=" + id +
            ", commodityId=" + commodityId +
            ", classificationId=" + classificationId +
            ", size=" + size +
            ", createTime=" + createTime +
        "}";
    }
}
